
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
#include <resolv.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>

#include "af.h"

extern int h_errno;		/* some netdb.h versions don't export this */
//extern struct aftype inet_aftype;

/* cache */
struct addr {
    struct sockaddr_in addr;
    char *name;
    int host;
    struct addr *next;
};


struct aftype inet_aftype =
{
    "inet", AF_INET, sizeof(unsigned long),
    -1,    NULL
};
